package org.zn.etl.job.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.zn.etl.job.entity.po.MappingColumnPo;

public interface MappingColumnMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MappingColumnPo row);

    MappingColumnPo selectByPrimaryKey(Long id);

    List<MappingColumnPo> selectAll();

    int updateByPrimaryKey(MappingColumnPo row);
    
    /**
     * 查询映射字段
     * @param dmId
     * @return
     */
    List<MappingColumnPo>  selectBydmId(@Param("datamappingid") Long dmId);
    
    /**
     * 查询 最大排序值
     * @param dmId
     * @return
     */
    Integer	selectMaxSortBydmId(@Param("datamappingid") Long dmId);
    
    
    Integer  deleteByDmId(@Param("datamappingid") Long dmId);
    
}